/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package crm.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author abet
 */
@Entity
@Table(name="crm_activity")
public class Activity {
    @Id 
    @Column(name="activity_id", length=10, nullable=false)
    private String actId;
    @Column (name="activity_date", length=255, nullable=false)
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date actDate;
    @Column (name="activity_description", length=255, nullable=false)
    private String actDesc;
    @Column (name="activity_note", length=255, nullable=false)
    private String actNote;
    @Column (name="activity_level", length=10, nullable=false)
    private int level;
    @ManyToOne
    @JoinColumn(name="project_id",insertable=false,updatable=false)
    private Project project;
    public Project getProject() {
        return project;
    }

    public void setProject(Project project) {
        this.project = project;
    }
    

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public Date getActDate() {
        return actDate;
    }

    public void setActDate(Date actDate) {
        this.actDate = actDate;
    }

    public String getActDesc() {
        return actDesc;
    }

    public void setActDesc(String actDesc) {
        this.actDesc = actDesc;
    }

    public String getActId() {
        return actId;
    }

    public void setActId(String actId) {
        this.actId = actId;
    }

    public String getActNote() {
        return actNote;
    }

    public void setActNote(String actNote) {
        this.actNote = actNote;
    }

    
}
